package com.hmdp.dto;

import lombok.Data;

import java.util.Objects;

@Data
public class LoginFormDTO {
    private String phone;
    private String code;
    private String password;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        LoginFormDTO that = (LoginFormDTO) o;
        return Objects.equals(phone, that.phone) && Objects.equals(code, that.code) && Objects.equals(password, that.password);
    }

    @Override
    public int hashCode() {
        return Objects.hash(phone, code, password);
    }
}
